<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="address=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="browsermode" content="application" />
    <meta name="x5-page-mode" content="app" />
    <title>设置</title>
    <meta charset="utf-8" />
    <link href="../css/main.css?rev=@@hash" rel="stylesheet" />

    <style type="text/css">
        .view{
            padding: .07rem .09rem 0;
        }
        .view div {
            height: .75rem;
            padding: 0;
            margin: 0 auto;
            overflow: hidden;
        }
        .setting_img{
            width: 3.59rem;
            height: .8rem;
            display: block;
            /*margin: -.05rem auto;*/
        }
        .login_out{
            width: 3.03rem;
            height: .49rem;
            display: block;
            margin: 0 auto;
        }
        .web_version{
            font-size: .16rem;
            color: rgb(65,65,65);
            text-align: center;
            margin: .2rem 0 .08rem;
        }
        .bottomVersion {
            position: absolute;
            bottom: .5rem;
            left: .36rem;
        }
    </style>
</head>
<body>
    <div class="layer_load">
      <div class="layer_mask"></div>
      <div class="layer_load_icon iconfont icon-loading"></div>
    </div>

    <div class="view">
        <!-- <a href="./resetPassword.html"><div><img class="setting_img" src="../images/setting01.png"></div></a> -->
        <a href="./resetBankCard.html"><div><img class="setting_img" src="../images/setting03.png"></div></a>
        <!-- <a href="../help/about.html"><div><img class="setting_img" src="../images/setting02.png"></div></a> -->
    </div>
    
    <div class="bottomVersion">
        <div class="web_version">V 1.0.0</div>
        <img class="login_out" id="loginOut" src="../images/loginout.png">
    </div>

    <!-- 脚本 -->
    <script src="../lib/zepto.min.js?rev=@@hash"></script>
    <script src="../js/main.js?rev=@@hash"></script>
    <script type="text/javascript">
        !function(global,userUtil,layer,dataUtil){
            $('#loginOut').on('click',function(){
                var $this = $(this);

                var _data =  {
                    sessionId: userUtil.sid(),
                    ss: new Date().getMilliseconds()
                };
                layer.showLoad();
                $.ajax({
                    url: global.localUrl + "wallet/user/logout",
                    type: "post",
                    data: JSON.stringify(_data),
                    contentType: 'application/json;charset=utf-8',
                    success: function (re) {
                        layer.hideLoad();
                        if (1 == re.code) {
                            layer.tips('退出登录');
                            userUtil.sid('');
                            userUtil.userID('');
                            userUtil.mobile('');
                            sessionStorage.removeItem('isOverdue');
                            window.location.href="../index.html";
                        } else {
                            layer.tips(re.message);
                        }
                    },
                    error: function () {
                        $('.layer_mask').removeClass('on');
                        layer.tips(global.netError);
                    }
                });
            })
        }(global,userUtil,layer,dataUtil)
    </script>
</body>
</html>
